import {  get , get1, post} from '@/utils/request'
import request from '@/utils/request'

// 数据填报--固定资产
export function getDataFillingInfo(page, limit) {
    return get('/api-user/tbAsster/selectFirm', {
      page,
      limit
    })
}

// 学历

export function getDataFillingInfoByeducation(page, limit) {
    return get('/api-user/SysEducationBackground/selectBackGround', {
      page,
      limit
    })
}

// 园区信息
export function getParkInfoById(id) {
    return get1('/api-user/tbPark/' + id)
}
//企业信息
export function getEnterpriseInfoById(id) {
  return get('/api-user/tbEnter', {
    id
  })
}

// 表单分类
export function getFormClassification() {
  return get('/api-user/tbGather/selectZ', {
  })
}
export function getFormClassificationByStatus(status) {
  return get('/api-user/tbGather/selectZ', {
    status
  })
}
// 添加分类

export function addFormClassification(data) {
  return request({
    url: '/api-user/tbGather',
    method: 'post',
    data
  })
}
// 保存表单数据
export function addFormInfo(data) {
  return request({
    url: '/api-user/tbGather/createTable',
    method: 'post',
    data
  })
}
// 查询单个表单
export function getFormInfoById(id) {
  return get('/api-user/tbGather/selectTable', { 
    id
  })
}
// 修改状态

export function putFormInfoByStatus1(id, status) {
  return get('/api-user/tbGather/updateStatus', { 
    id,
    status
  })
}
export function putFormInfoByStatus(id, firmList, status) {
  return get('/api-user/tbGather/updateStatus', { 
    id,
    firmList,
    status
  })
}


// 删除分类名  表
export function delClassOrFormName(id, name) {
  return get('/api-user/tbGather/delete', { 
    id,
    name
  })
}
export function putClassOrFormName(id,name) {
  return get('/api-user/tbGather/update', { 
    id,
    name
  })
}

// 根据id 获取 字段 和数据
export function getFormFiledAndDataById(page, limit, id) {
  return post('/api-user/tbGather/selectTableList', { 
    page,
    limit,
    id
  })
}

// 催收查询
export function getUrgeInfoById(page, limit, id) {
  return get('/api-user/tbGather/selectCollection', { 
    page,
    limit,
    id
  })
}

// 催收

export function putUrgeById(id, firmId) {
  return post('/api-user/tbGather/updateCollection', {
    id,
    firmId
  })
}